package com.scalar.chiptrack.operations.dataentry.lotsplit.actioncommands;

import com.scalar.chiptrack.actioncommands.ActionCommand;


/**
 * Created by IntelliJ IDEA.
 * User: Sudhakar
 * Date: Jan 04, 2008
 * Time: 12:12:30 AM
 */
public class LotSplitActionCommandFactory
{

    private LotSplitActionCommandFactory()
    {
    }

    public static ActionCommand getActionCommand(String action)
    {          

        if (action == null || "processTypes".equalsIgnoreCase(action))
        {
            return new LotSplitLoadProcessTypesCommand();
        }
        else if ("partNumbers".equalsIgnoreCase(action))
        {
            return new LotSplitLoadPartNumbersCommand();
        }
        /*else if ("locations".equalsIgnoreCase(action))
        {
            return new LotSplitLoadLocationsCommand();
        }*/
       /* else if ("fabLotNumbers".equalsIgnoreCase(action))
        {
            return new LotSplitLoadFabLotNumbersCommand();
        }*/
        /*else if ("lotNumbers".equalsIgnoreCase(action))
        {
            return new LotSplitLoadLotNumbersCommand();
        }*/
        /*else if ("loadLotInfo".equalsIgnoreCase(action))
        {
            return new LotSplitLoadLotDetailsCommand();
        }*/
        else if ("save".equalsIgnoreCase(action) || "confirm".equalsIgnoreCase( action ) )
        {
            return new LotSplitSaveCommand();
        }

        return null;
    }
}
